package com.spring.elasticsearch;


import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.env.Environment;

@SpringBootApplication
@Slf4j
public class ElasticsearchApplication {

    public static void main(String[] args) {
        SpringApplication application=new  SpringApplication(ElasticsearchApplication.class);
        Environment environment = application.run(args).getEnvironment();
        log.info("启动成功！！");
        log.info("ElasticsearchDemo地址: \thttp://127.0.0.1:{}", environment.getProperty("server.port"));
    }

}
